<template>
  <div>changePassword</div>
</template>

<script>
export default {
  name: 'changePassword',
  mounted() {
    const p1 = new Promise((resolve, reject) => {
      this.sleep(3000).then(() => {
        resolve({ name: 'audio', value: 'id1111' })
      })
    })
    const p2 = new Promise((resolve, reject) => {
      resolve({ name: 'video', value: 'id222' })
    })

    Promise.all([p1, p2]).then(res => {
      console.log(res)
    })
  },
  methods: {
    sleep(ms) {
      var temple = new Promise(
        (resolve) => {
          setTimeout(resolve, ms)
        })
      return temple
    }
  }
}
</script>

<style>

</style>
